//
//  YDAlertShow.h
//  YDAlertShow
//
//  Created by James on 16/5/8.
//  Copyright © 2016年 bearbaby. All rights reserved.
//
// 本人iOS 刚涉水，公司要自己写提示框，本人发现网上的提示框是很华丽，但是涉及到的底层比较多，代码也比较难懂，一般的提示框也不用那么华丽，于是乎就自定义了一些提示框，界面有些粗糙，有什么不足之处还请大神多多指点
//本人QQ 1050261614 执子之手
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ViewController.h"

typedef enum : NSUInteger {
    IconStatueError=1,
    IconStatueConfirm,
    IconStatueFailure,
    IconStatueSuccess
} YDIconStatue;
@interface YDAlertShow : NSObject
@property(nonatomic,assign)YDIconStatue *iconStatue;
@property(nonatomic,strong)__block UITextField *inputField;


+(instancetype)shareAlert;

/**
 *  纯文字，加返回时间的提示框
 *
 *  @param ydTitle   提示框标题
 *  @param ydContent 提示框内容
 *  @param ydActions 按钮响应时间（必须返回的void(^)()）
 */
+(void)showAlertWithTitle:(NSString *)ydTitle withContent:(NSString *)ydContent withActions:(NSArray *)ydActions;

/**
 *  文字加表情的提示框
 *
 *  @param ydTitle       <#ydTitle description#>
 *  @param iconStatue    <#iconStatue description#>
 *  @param ydContent     <#ydContent description#>
 *  @param buttonTitles  <#buttonTitles description#>
 *  @param buttonActions <#buttonActions description#>
 */
+(void)showAlertWithTitle:(NSString *)ydTitle withIconStatue:(YDIconStatue)iconStatue withContent:(NSString *)ydContent withButtonTitles:(NSArray *)buttonTitles withButtonAction:(NSArray<void(^)()> *)buttonActions;

/**
 *  带输入框的提示框
 *
 *  @param ydTitle       <#ydTitle description#>
 *  @param ydHolder      <#ydHolder description#>
 *  @param buttonTitles  <#buttonTitles description#>
 *  @param confirmAction <#confirmAction description#>
 *
 *  @return YDAlertShow 从而取得inputField 的值
 */
-(instancetype)initWithTitle:(NSString *)ydTitle withPlaceholder:(NSString *)ydHolder withButtonTitles:(NSArray *)buttonTitles withConfirmHandle:(void(^)())confirmAction;

/**
 *  纯文字仅仅提示、设定是2秒消失
 *
 *  @param ydTitle   <#ydTitle description#>
 *  @param ydContent <#ydContent description#>
 */
+(void)showAlertWithTitle:(NSString *)ydTitle withContent:(NSString *)ydContent;

/**
 *  文字表情结合提示、设定2秒消失
 *
 *  @param ydTitle   <#ydTitle description#>
 *  @param iconStaue <#iconStaue description#>
 *  @param ydContent <#ydContent description#>
 */
+(void)showAlertWithTitle:(NSString *)ydTitle withIconStatue:(YDIconStatue)iconStaue withContent:(NSString *)ydContent;
//addTextFieldWithConfigurationHandler:(void (^ __nullable)(UITextField *textField))configurationHandler
@end
